package com.yanqu.road.utils.net;

/**
 * 服务器配置
 **/
public class ServerNetConfig {
	private int serverIndex;
	private String name;
	private String address;
	private int port;
	private int adminPort;

	public ServerNetConfig(int serverIndex, String name, String address, int port, int adminPort) {
		this.serverIndex = serverIndex;
		this.name = name;
		this.address = address;
		this.port = port;
		this.adminPort = adminPort;
	}

	public int getServerIndex() {
		return serverIndex;
	}

	public String getName() {
		return name;
	}

	public String getAddress() {
		return address;
	}

	public int getPort() {
		return port;
	}

	public int getAdminPort() {
		return adminPort;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer("ServerNetConfig:");
		sb.append("serverIndex=").append(serverIndex).append("|");
		sb.append("address=").append(address).append("|");
		sb.append("port=").append(port).append("|");
		sb.append("adminPort=").append(adminPort);
		return sb.toString();
	}

}